package com.facishare.open.demo.ioc;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service("helloWorld")
@Slf4j
public class HelloWorld {

    @Value("${welcome.msg}")
    private String welcomeMsg;

    public void say(String nick) {
        log.info(welcomeMsg + " , " + nick + ";");
    }
}
